﻿using System;

namespace SubSpec
{
    /// <summary>
    /// An exception that is thrown from Observations or their teardown whenever the corresponding setup failed.
    /// </summary>
#if !SILVERLIGHT
    [Serializable]
#endif
    public class ContextSetupFailedException : Exception
    {
        public ContextSetupFailedException( string message ) : base( message ) { }

#if !SILVERLIGHT
        protected ContextSetupFailedException(
          System.Runtime.Serialization.SerializationInfo info,
          System.Runtime.Serialization.StreamingContext context )
            : base( info, context ) { }
#endif
    }
}
